<%@page contentType="text/html; charset=UTF-8"%>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/json2.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/xhconn.js"></script>
<%
	String contextPath = request.getContextPath();
	String jxPath = contextPath+"/jxlib/";
%>

<script type="text/javascript" src="<%=jxPath %>lib/jxlib.js"></script>
<script type="text/javascript" src="<%=jxPath %>lib/jxlib.uncompressed.js"></script>

<script>
//获取文章列表
var callURL = "<%=request.getContextPath()%>/cms/cmsindex.do?";
//解析结果的函数可以作为参数传入。
function getArt(call,artType,order,clsCode,isChild,hot,commend,isHeader,top,first,max,processFun){
	var args = "call="+call;
	args += "&clsCode="+clsCode;
	args += "&isChild="+isChild;
	args += "&artType="+artType;
	args += "&hot="+hot;
	args += "&top="+top;
	args += "&isHeader="+isHeader;
	args += "&commend="+commend;
	args += "&order="+order;
	args += "&first="+first;
	args += "&max="+max;
	var xhConn = new XHConn();
	xhConn.connect(callURL,"POST",args,
			function(xh){
				var res = eval('('+xh.responseText+')');
				//解析返回值
				if(res.result == "1"){//返回值
					var _artL = res.msg;
					processFun(_artL);
				}else{
					return null;
				}
		});
}
</script>